// @APIVersion 1.0.0
// @Title 接口API
// @Description 客户端通过API接口接入系统
// @Contact jiftle@163.com
package routers

import (
	"gitee.com/yctxkj/cmsvueback/controllers"
	"github.com/astaxie/beego"
)

func init() {
	// 首页，加载vue
	beego.Router("/", &controllers.MainController{})

	//初始化 namespace
	ns :=
		beego.NewNamespace("/vue",
			beego.NSNamespace("/user",
				beego.NSInclude(
					&controllers.UserController{},
				),
			),
		)
	//注册 namespace
	beego.AddNamespace(ns)
}
